package com.situ.mall.common.exception;

import lombok.Data;

/**
 * @author yangkx
 * @create 2023-09-13-0:10
 */
@Data
//自定义异常
public class MyException extends RuntimeException{

    //报异常时返回的信息
    private String msg;

    //无参构造
    public MyException(){

    }

    //有参构造
    public MyException(String msg){
        this.msg = msg;
    }
}
